<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$this->language?>" lang="<?=$this->language?>">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta charset="utf-8" />

	<title><?=$this->title ? $this->title : $this->I18n($this->setting['h1'])?></title>

	<!--[if IE]>
	<meta http-equiv="PRAGMA" content="NO-CACHE" />
	<![endif]-->
	<!--[if lt IE 9]>
	<script src="<?=$this->Easy()->s('/javascripts/html5.js')?>"></script>
	<![endif]-->
	
	<?if($this->keywords || $this->setting['keywords']):?>
	<meta name="keywords" content="<?=$this->keywords ? $this->keywords : $this->setting['keywords']?>">
	<?endif;?>
	<?if($this->description || $this->setting['description']):?>
	<meta name="description" content="<?=$this->description ? $this->description : $this->setting['description']?>">
	<?endif;?>

	<?if($this->setting['favicon']):?>
	<link href="<?=$this->Easy()->s('/favicon.ico');?>" type="image/x-icon" rel="icon" />
	<link href="<?=$this->Easy()->s('/favicon.ico');?>" type="image/x-icon" rel="shortcut icon" />
	<?endif;?>

	<meta name="author" content="Powered by Easthv Team / qianxu@easthv.com" />
	<?=$this->Easy()->cssCompressor('_igal', 'eva/reset', 'igal');?>

	<?if($this->redirect):?>
	<meta http-equiv="Refresh" content="<?=$this->setting['redirectDelay'] > 0 ? $this->setting['redirectDelay'] : "0"; ?>; url=<?=$this->Easy($this->redirect); ?>">
	<?endif?>
</head>

<body class="<?=$this->params['resource'] == 'Index' && $this->params['action'] == 'index' ? 'index' : ''?>">

<!-- #header start-->
<header id="header" class="header">
<!-- #header end -->
</header>


<!-- #page start -->
<div id="page" class="page">

<?if($this->errors):?>
<?=$this->partial('errors/' . $this->errors['template'] . '.phtml',$this);?>
<?endif;?>

<?if($this->hint):?>
<?=$this->partial('hint/' . $this->hint['template'] . '.phtml',$this);?>
<?endif;?>

<?if($this->success):?>
<?=$this->partial('success/' . $this->success['template'] . '.phtml',$this);?>
<?endif?>

<?if($this->valids):?>
<?=$this->partial('valids/default.phtml',$this);?>
<?endif?>

<?if(!($this->errors && $this->errors['showContent'] === false || $this->success && $this->success['showContent'] == false)):?>
<?=$this->layout()->content;?>
<?endif?>

<!-- #page end -->
</div>


<!-- #footer start-->
<footer id="footer" class="footer">
</footer>
<!-- #footer end-->

<?=$this->partial('layout.js.phtml',$this);?>
</body>
</html>
